/*
 * Copyright (c) 2023, 2024,yzc.cn All rights reserved.
 *
 */
package cn.yzc.server.impl;

import cn.yzc.entity.Goods;
import cn.yzc.mapper.GoodsMapper;
import cn.yzc.server.GoodsServer;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>Project: SpringColud - GoodsServerImpl</p>
 * <p>Powered by yzc On 2024-01-06 15:19:48</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@Service
public class GoodsServerImpl implements GoodsServer {
    @Autowired
    GoodsMapper goodsMapper;


    @Override
    public int update(String id, int num) {
        int rs = goodsMapper.update(id, num);
        return rs;
    }
}
